﻿@{
    ViewBag.Title = "SqlTools";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div>
    <h2>Sql Tools</h2>
    @using (Html.BeginForm("SqlTools", "Dev", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "cm-form-highlight cm-skip-check-items" }))
    {
    <div>
        Sql Server statement
        <br />
        <input type="submit" name="ProcessSql" value="Process Sql" />
        <br />
        @Html.TextArea("sql", new {@style="width:100%;height:300px;"})
        <br />
        Processed Result
        <br />
        @ViewData["result"]
    </div>
    }
</div>